XML RDF (Resource Description Framework)
=========================================
**RDF** (Resource Description Framework) is a standard model for **data interchange on the web**.
It enables structured and semi-structured data to be mixed, shared, and reused across different applications.
RDF uses an **XML-based format** when serialized as RDF/XML, meaning it follows XML rules to describe relationships between resources.
---
What is RDF?
------------
- 🔗 **Describes Resources**: RDF describes resources (like a book, person, or website) using **triples** — sets of three pieces of information.
- 📖 **Triple Structure**:
- **Subject**: The resource being described.
- **Predicate**: The property or characteristic of the resource.
- **Object**: The value of that property.
- 🌐 **Web-Friendly**: Specifically designed to link and connect data across the web (Semantic Web).
---
Basic Structure of RDF/XML
---------------------------
An RDF/XML document typically looks like this:
.. code-block:: xml
Learning XML
John Doe
2024-05-01
---
Understanding the Example
--------------------------
- **Root Element**: ```` acts as the container for RDF data.
- **Namespaces**: Defined using `xmlns:` to distinguish between different vocabularies (e.g., `rdf`, `ex`).
- **Resource Description**: Each resource is described with a ```` element.
Breakdown of the Example:
- **Subject**: `http://example.com/book1` (the book being described)
- **Predicate**: `ex:title`, `ex:author`, `ex:published` (the properties)
- **Object**:
XML RDF (Resource Description Framework)
=========================================
**RDF** (Resource Description Framework) is a standard model for **data interchange on the web**.
It allows structured and semi-structured data to be mixed, shared, and reused across different applications.
RDF is **XML-based** when serialized using RDF/XML syntax — meaning it follows XML rules to describe relationships between resources.
---
What is RDF?
----------------
- 🔗 **Describes Resources**: RDF describes resources (like a book, person, or website) using **triples** (subject, predicate, object).
- 📖 **Triple Structure**:
- **Subject**: The resource being described.
- **Predicate**: The property or characteristic of the resource.
- **Object**: The value of the property.
- 🌐 **Web-Friendly**: Designed for linking data across the web (Semantic Web).
---
Basic Structure of RDF/XML
-----------------------------
An RDF/XML document typically looks like this:
```xml
Learning XML
John Doe
2024-05-01
The root element is .
Namespaces are used (xmlns:rdf and xmlns:ex) to identify vocabularies.
Each resource is described with a element.
Explained with Example:
------------------
Subject: http://example.com/book1 (the book resource)
Predicate: ex:title, ex:author, ex:published (properties)
Object: "Learning XML", "John Doe", "2024-05-01" (property values)
Why Use RDF?
--------------
✅ Data Integration: Connects information from different sources.
✅ Machine-Readable: Easy for programs to understand and process.
✅ Extensible: New properties can be added without breaking the model.
✅ Semantic Web Foundation: Core technology behind the semantic web (Web 3.0).